<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
	<%@ include file="../../common/headConfig.jsp"%>
	<link rel="stylesheet" href="css/vehicleGroup.css" />
	<script type="text/javascript" src="js/deviceManagement/device.js"></script>
	
	<script>
		rivmsMenuActive = "rivms_DeviceManagement";
		 $(document).ready(function() {
		 	$( "button" ).button();
			ajaxFindDeviceSearchList();
		 });
	</script>
</head>
<body>
	<div id="rvimsContent">
		<%@ include file="../../common/header.jsp"%>
		<div id="rvimsMain">
			<div style="width: 100%;">
				<div class="crumbbox">当前位置：设备管理&gt;&gt;外场设备管理&gt;&gt;<font color="red">信号设备信息管理</font></div>
				<div class="buttonbox">
					<button onclick="ajaxShowDeviceEdit(null);return false;">新增</button>
					<button onclick="ajaxDeleteDeviceById(null)">删除</button>
				</div>
				<div id="sltDevice"  class="searchbox">
						<table style="background-color: #3BAAE3;width: 100%;min-width:930px;" cellspacing="0" cellpadding="0">
							<tr>
								<td align="right">设备名称：</td>
								<td><input type="text" id="deviceName"></td>
								<td align="right">设备类型：</td>
								<td>
									<select id="deviceType">
										<option value="">---请选择---</option>
										<c:forEach items="${lstDeviceType}" var="deviceType">
											<option value="${deviceType.id }">${deviceType.name }</option>
										</c:forEach>
									</select>
								</td>
								<td align="right">设备状态：</td>
								<td>
									<select id="deviceStatus">
										<option value="">---请选择---</option>
										<c:forEach items="${lstDeviceStatus}" var="deviceStatus">
											<option value="${deviceStatus.id }">${deviceStatus.name }</option>
										</c:forEach>
									</select>
								</td>
								<td>
									<button onclick="ajaxFindDeviceSearchList()" style="width:75px;">查询</button>
								</td>
							</tr>
							<tr>
								<td align="right">设备编号：</td>
								<td><input type="text" id="deviceNum"></td>
								<td align="right">所属单元：</td>
								<td>
									<select id="unit">
										<option value="">---请选择---</option>
										<c:forEach items="${lstUnit}" var="unit">
											<option value="${unit.id }">${unit.name }</option>
										</c:forEach>
									</select>
								</td>
								<td align="right">安装日期：</td>
								<td>
									<input type="text" id="installDate" name="installDate" class="date" readonly="readonly" value="<c:out value=''/>"/>								
								</td>
								<td>
									<button onclick="clearInput('#sltDevice')" style="width:75px;">重置</button>
								</td>
							</tr>
						</table>
				</div>
				<form id="fmDevice" method="post"><input type="hidden" id="deviceId" name="deviceId"></form>
				<div id="listDeviceBox" style="width: 100%;"></div>
			</div>
		</div>
		<%@ include file="../../common/footer.jsp"%>
	</div>
</body>
<script>
	$("#installDate").datepicker({
	      changeMonth: true,
	      numberOfMonths: 1,
	    });
	$(".date").datepicker({regional:"zh-CN"});
</script>
</html>


